<html>
<body>

<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
    Name: <input type="text" name="fname">
    age: <input type="number" name="age">
    <input type="submit">
</form>
<?php
$name = $_REQUEST['fname'];
$age = $_REQUEST['age'];
echo $name.$age;
?>
</body>
</html>